package com.css.fxfzypg.modules.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * sys_riskenterprisedata
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RiskEnterpriseData implements Serializable {
    private Integer redId;

    @Excel(name = "经度")
    private Float redLongitude;
    @Excel(name = "纬度")
    private Float redLatitude;
    @Excel(name = "企业名称")
    private String redName;
    @Excel(name = "地址")
    private String redAddress;
    @Excel(name = "危化品类型")
    private String redType;
    @Excel(name = "规模")
    private String redScale;
    @Excel(name = "风险等级")
    private String redRiskgrade;

    private String redStatus;
    private Date redUpdatetime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date redCreatetime;

    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串
    private String id;//主键ID
    /*是否重点隐患*/
    private String sfzdyh;//1(是)、0(否)

    private static final long serialVersionUID = 1L;

    /*public Integer getRedId() {
        return redId;
    }

    public void setRedId(Integer redId) {
        this.redId = redId;
    }

    public Float getRedLongitude() {
        return redLongitude;
    }

    public void setRedLongitude(Float redLongitude) {
        this.redLongitude = redLongitude;
    }

    public Float getRedLatitude() {
        return redLatitude;
    }

    public void setRedLatitude(Float redLatitude) {
        this.redLatitude = redLatitude;
    }

    public String getRedName() {
        return redName;
    }

    public void setRedName(String redName) {
        this.redName = redName;
    }

    public String getRedAddress() {
        return redAddress;
    }

    public void setRedAddress(String redAddress) {
        this.redAddress = redAddress;
    }

    public String getRedType() {
        return redType;
    }

    public void setRedType(String redType) {
        this.redType = redType;
    }

    public String getRedScale() {
        return redScale;
    }

    public void setRedScale(String redScale) {
        this.redScale = redScale;
    }

    public String getRedRiskgrade() {
        return redRiskgrade;
    }

    public void setRedRiskgrade(String redRiskgrade) {
        this.redRiskgrade = redRiskgrade;
    }

    public String getRedStatus() {
        return redStatus;
    }

    public void setRedStatus(String redStatus) {
        this.redStatus = redStatus;
    }

    public Date getRedUpdatetime() {
        return redUpdatetime;
    }

    public void setRedUpdatetime(Date redUpdatetime) {
        this.redUpdatetime = redUpdatetime;
    }

    public Date getRedCreatetime() {
        return redCreatetime;
    }

    public void setRedCreatetime(Date redCreatetime) {
        this.redCreatetime = redCreatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RiskEnterpriseData other = (RiskEnterpriseData) that;
        return (this.getRedId() == null ? other.getRedId() == null : this.getRedId().equals(other.getRedId()))
            && (this.getRedLongitude() == null ? other.getRedLongitude() == null : this.getRedLongitude().equals(other.getRedLongitude()))
            && (this.getRedLatitude() == null ? other.getRedLatitude() == null : this.getRedLatitude().equals(other.getRedLatitude()))
            && (this.getRedName() == null ? other.getRedName() == null : this.getRedName().equals(other.getRedName()))
            && (this.getRedAddress() == null ? other.getRedAddress() == null : this.getRedAddress().equals(other.getRedAddress()))
            && (this.getRedType() == null ? other.getRedType() == null : this.getRedType().equals(other.getRedType()))
            && (this.getRedScale() == null ? other.getRedScale() == null : this.getRedScale().equals(other.getRedScale()))
            && (this.getRedRiskgrade() == null ? other.getRedRiskgrade() == null : this.getRedRiskgrade().equals(other.getRedRiskgrade()))
            && (this.getRedStatus() == null ? other.getRedStatus() == null : this.getRedStatus().equals(other.getRedStatus()))
            && (this.getRedUpdatetime() == null ? other.getRedUpdatetime() == null : this.getRedUpdatetime().equals(other.getRedUpdatetime()))
            && (this.getRedCreatetime() == null ? other.getRedCreatetime() == null : this.getRedCreatetime().equals(other.getRedCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRedId() == null) ? 0 : getRedId().hashCode());
        result = prime * result + ((getRedLongitude() == null) ? 0 : getRedLongitude().hashCode());
        result = prime * result + ((getRedLatitude() == null) ? 0 : getRedLatitude().hashCode());
        result = prime * result + ((getRedName() == null) ? 0 : getRedName().hashCode());
        result = prime * result + ((getRedAddress() == null) ? 0 : getRedAddress().hashCode());
        result = prime * result + ((getRedType() == null) ? 0 : getRedType().hashCode());
        result = prime * result + ((getRedScale() == null) ? 0 : getRedScale().hashCode());
        result = prime * result + ((getRedRiskgrade() == null) ? 0 : getRedRiskgrade().hashCode());
        result = prime * result + ((getRedStatus() == null) ? 0 : getRedStatus().hashCode());
        result = prime * result + ((getRedUpdatetime() == null) ? 0 : getRedUpdatetime().hashCode());
        result = prime * result + ((getRedCreatetime() == null) ? 0 : getRedCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", redId=").append(redId);
        sb.append(", redLongitude=").append(redLongitude);
        sb.append(", redLatitude=").append(redLatitude);
        sb.append(", redName=").append(redName);
        sb.append(", redAddress=").append(redAddress);
        sb.append(", redType=").append(redType);
        sb.append(", redScale=").append(redScale);
        sb.append(", redRiskgrade=").append(redRiskgrade);
        sb.append(", redStatus=").append(redStatus);
        sb.append(", redUpdatetime=").append(redUpdatetime);
        sb.append(", redCreatetime=").append(redCreatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }*/
}